import BaseService from '@/api/BaseService'
class FuncService extends BaseService {
  initFilterFuncParam(commonInfo, ndCode, returnNdCode, postfix, callback = () => {
  }) {
    const data = {
      commonInfo: commonInfo,
      value: {
        ndCode, returnNdCode, postfix
      }
    }
    return this.remoteCall('/func/initFilterFuncParam', data, callback)
  }

  commitFilterFunc(commonInfo, initParamNv, callback = () => {
  }) {
    const data = {
      commonInfo: commonInfo,
      value: initParamNv
    }
    return this.remoteCall('/func/commitFilterFunc', data, callback)
  }
}

const funcService = new FuncService(false)
export default funcService
